var ue = UE.getEditor('editor');
function on_form() {
    /*let text = document.getElementById("editor").value;*/
    var text = UE.getEditor('editor').getContent();
    if(text == '' || text == null){
        alert("内容不能为空。");
        return false;
    }
}
function btn1() {
    var mymessage=confirm("确定要退出登录吗？");
    if(mymessage == true){
        window.location.href="<?php echo $url;?>m=index&c=login&f=userlogin";
        return true;
    }else {
        window.location.href="<?php echo $url;?>m=index&c=update&f=usereg";
        return false;
    }
}
function btn2() {
    window.location.href="<?php echo $url;?>m=index&c=home&f=userhome";
}